package cn.com.miao.lynx.service.system.service;

import cn.com.miao.lynx.common.base.service.TreeService;
import cn.com.miao.lynx.service.system.entity.SysDictItem;
import org.springframework.cache.annotation.Cacheable;

/**
 * SysDictItemService
 *
 * @title: SysDictItemService
 * @description:
 * @author: dengmiao
 * @create: 2019-12-30 10:24
 **/
public interface SysDictItemService extends TreeService<SysDictItem, Long> {

    /**
     * 按字典code和字典值查询
     * @param code
     * @param value
     * @return
     */
    @Cacheable(value = "sysDictItem::findDictItem", key = "#code.concat('::').concat(#value)", sync = true)
    SysDictItem findDictItemByDictCodeAndValue(String code, String value);
}
